import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';

// https://vite.dev/config/
export default defineConfig({
  server: {
    proxy: {
      '/api': {
        target: 'https://apifoxmock.com/m1/5663327-5343894-default',
        changeOrigin: true, //允许跨域
      },
    },
  },
  plugins: [react()],
});
